<script type="text/javascript" src="../manage/js/Calendar.js"></script>
<script type="text/javascript" src="../manage/finance/js/JsPage.js"></script>
<script type="text/javascript" src="js/popBox.js"></script>
<script type="text/javascript" src="js/orderComm.js"></script>
<link rel="stylesheet" href="css/ordersquery_m.css" media="all"/>
<link rel="stylesheet" href="css/JsPage.css" media="all"/>
<div class="query">
	<form class="searchBox searchBox2" id="searchBox" action="">
		<div class="part">
			<p class="time" onclick="seleTime(event)">
				<b>查询时间：</b><select name="time">
					<option value="0">-下单时间-</option>
					<option {$time_1} value="1">-预计游玩-</option>
					<option {$time_2} value="2">-完成时间-</option>
				</select>
				<input type="text" class="date inputText" name="op" id="op" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="{$op}"/>
				至
				<input type="text" id="ed" value="{$ed}" class="date inputText" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" name="ed"/>
				<a title="today" class="{$tp_0}">今天</a>
				<a title="yesterday" class="{$tp_1}">昨天</a>
				<a title="tomorrow" class="{$tp_2}">明天</a>
				<a title="week" class="{$tp_3}">本周</a>
				<a title="lastweek" class="{$tp_4}">上周</a>
				<a title="month" class="{$tp_5}">本月</a>
				<a title="lastmonth" class="{$tp_6}">上月</a>
			</p>
			<p class="checks">
				<span class="left">
					<b>订单状态：</b><label><input type="checkbox" {$status_0} class="verinput" name="status[]" value="0" />未使用</label>
					<label><input type="checkbox" class="verinput" {$status_1} name="status[]" value="1" />已使用</label>
					<label><input type="checkbox" class="verinput" {$status_2} name="status[]" value="2" />已过期</label>
					<label><input type="checkbox" class="verinput" {$status_3} name="status[]" value="3" />已取消</label>
				</span>
				
				<span class="content">
					<b>支付方式：</b><label><input type="checkbox" class="verinput" name="zf[]" {$money} value="2" />账户余额</label>
					<label><input type="checkbox" class="verinput" name="zf[]" {$tmoney} value="3" />信用额度</label>
				</span>
				
			</p>
			<p>
				<span class="left">
					<b>查询条件：</b><select onchange="var sel=$(this).next();if(this.value==4){sel.show();sel.next().hide();}else{sel.hide();sel.next().val('').show();}" name="tj">
						<option value="">--请选择--</option>
						<option {$tj_0} value="0">订单号</option>
						<option {$tj_1} value="1">产品名称</option>
						<option {$tj_2} value="2">联系人姓名</option>
						<option {$tj_3} value="3">联系人手机</option>
						<option {$tj_4} value="4">分销商</option>
					</select>
					<select style="{$selcss}width:36%;" onchange="$(this).next().val(this.value)" >
						<option value="0">-请选择分销商-</option>
					<!--&list=low&limit=0&child=0&arg=id,name,sel-->
						<option {low.sel} value="{low.id}">{low.name}</option>
					<!--list-low-->
					</select>
					<input type="text" name="txt" {$txtcss} class="inputText svalue" value="{$txt}"/>
				</span>
				<span class="content">
					<b>搜索排序：</b>
					<select name="order">
						<option value="">--请选择--</option>
						<option {$order_1} value="1" >-下单时间-</option>
						<option {$order_2} value="2" >-预计游玩-</option>
						<option {$order_3} value="3" >-验证时间-</option>
						<option {$order_5} value="5" >-产品标题-</option>
					</select>
					<label><input {$by_1} class="verinput" type="radio" name="by" value="1" />降序</label>
					<label><input {$by_0} class="verinput" type="radio" name="by" value="0"/>升序</label>
				</span>
			</p>
		</div>
		<input type="submit" class="queryBtn btn" value="查 询" />
		<div style="clear:both"></div>
	</form>
</div>

	<!--&if=tx&status=1-->
    <div class="remide-box">
    	<h3>订单提醒：</h3>
        <ul>
        	<li><a target="_blank" href="change_apply.html?type=0">同意撤单:<span class="ora">({$ac})</span></a></li>
        	<li><a target="_blank" href="change_apply.html?type=0">拒绝撤单:<span class="ora">({$rc})</span></a></li>
        	<li><a target="_blank" href="change_apply.html?type=0">同意修改:<span class="ora">({$au})</span></a></li>
        	<li><a target="_blank" href="change_apply.html?type=0">拒绝撤单:<span class="ora">({$ru})</span></a></li>
        </ul>
        <a target="_blank" href="change_apply.html?type=0" class="other">列表查看</a>
    </div>
	<!--if-tx-1-->
<style>
.section table td{ height:64px; border-style:dashed; border-top-style:solid;}
.section table td.borsoli{ border-style:solid;}
.section table td.rigsoli{ border-right-style:solid;}
.section table tr.moreord td{ border-top:1px dashed #B0DFFD;}
.section table td.txtleft{ text-align:left; padding-left:7px;}
.section table th{ background:#D7EFFF; border:1px solid #B0DFFD;}
.section table td.surtd{ height:32px; border:1px solid #ccc;}
</style>

<div class="section popupwz">
	<table class="orders" id="orders">
		<thead>
			<th class="tl">订单号</th>
			<th>产品信息</th>
            <th>结算价</th>
            <th>销售价</th>
			<th>下单时间</th>
            <th>预计游玩</th>
			<th>取票人信息</th>
            <th>支付方式</th>
			<th>订单状态</th>
			<th>订单操作</th>
		</thead>
	<!--&list=ol&limit=0&child=0&arg=ordid,ordid2,ordid3,ordid4,ordid5,ordid6,ordid7,ordid8,ordid9,ordid10,ordid11,ordid12,title,title2,ttitle,ttitle2,num,num2,fpri,pri,total,total2,name,tel,subtime,opname,sub,play,finish,ok,order_num1,order_num2,order_num3,order_num4,order_num5,order_num6,order_num7,i_css,i_txt,s_css,s_txt,pstatus,upd,updtxt,updfun,canc,canctxt,cancfun,regain,pay,send,msg,pmode,print,remsg,remsg2,see,firm-->
        
        
        	<tr>
            	<td class="borsoli" rowspan="{ol.order_num1}"><a target="_blank" href="orderCheck.html?ordernum={ol.ordid}">{ol.ordid2}</a></td>
            	<td class="txtleft">{ol.title}<br />【{ol.ttitle}】*<span style="color:#FC6602; font-size:14px;">{ol.num}</span>张</td>
                <td>{ol.fpri}</td>
                <td>{ol.pri}</td>
            	<td rowspan="{ol.order_num2}">{ol.subtime}</td>
            	<td rowspan="{ol.order_num3}">{ol.play}</td>
            	<td rowspan="{ol.order_num4}">{ol.name}<br />{ol.tel}</td>
                <td rowspan="{ol.order_num5}"><span class="{ol.i_css}">{ol.i_txt}{ol.pstatus}</span></td>
            	<td rowspan="{ol.order_num6}"><span class="{ol.s_css}" title="验证时间：{ol.ok}">{ol.s_txt}{ol.firm}</span></td>
            	<td class="rigsoli" rowspan="{ol.order_num7}">
                	合计：<span style=" color:#f60; font-size:14px; font-weight:bold; line-height:21px;">&yen;{ol.total}</span><br />
                    <span class="vidhid show">
                        <a target="_blank" href="{ol.see}={ol.ordid3}">查看</a>
                    </span>
                    <span class="vidhid {ol.regain}">
                        |
                        <a href="###" title="恢复已取消的订单" onclick="restoreOrder({ol.ordid5},{$online},{ol.pmode},{ol.total2});">恢复</a>
                    </span>
                    <span class="vidhid {ol.pay}">
                        |
                        <a href="orderConfirmPay.html?ordernum={ol.ordid10}&act=pay" title="支付已确认的订单" >支付</a>
                    </span>
                    <span class="vidhid {ol.canc}">
                        |
                        <a href="###" onclick="{ol.cancfun}({ol.ordid6})">{ol.canctxt}</a>
                    </span>
                    <span class="vidhid {ol.msg}">
                        |
                        <a href="tourist_info.html?ordid={ol.ordid7}" target="_blank">旅客信息</a>
                    </span>
                    <span class="vidhid {ol.upd}">
                        <br />
                        <a href="###" onclick="{ol.updfun}({ol.ordid8},'{ol.title2}','{ol.ttitle2}',{ol.num2},{ol.remsg2})">{ol.updtxt}</a>
                    </span>
                    <span class="vidhid {ol.send}">
                        |
                        <a href="###" onclick="resendMessage({ol.ordid9},{ol.remsg})">重发</a>
                    </span>
                    <span class="vidhid {ol.print}">
                        |
                        <a href="orderPrint.html?ordernum={ol.ordid4}" target="_blank">打印</a>
                    </span>
                </td>
            </tr>
		<!--&list=a3&limit=0&child=1&arg=ordid,ordid2,ordid3,ordid4,ordid5,ordid6,ordid7,ordid8,ordid9,ordid10,ordid11,ordid12,title,title2,ttitle,ttitle2,num,num2,fpri,pri,total,total2,name,tel,subtime,opname,sub,play,finish,ok,i_css,i_txt,s_css,s_txt,pstatus,upd,updtxt,updfun,canc,canctxt,cancfun,regain,pay,send,msg,pmode,print,remsg,remsg2,see,firm-->
            
            <tr class="moreord">
            	<td class="txtleft">{a3.title}<br />【{a3.ttitle}】*<span style="color:#FC6602; font-size:14px;">{a3.num}</span>张</td>
            	<td>{a3.fpri}</td>
                <td>{a3.pri}</td>
            	<!--<td class="rigsoli">
                	合计：<span style=" color:#f60; font-size:14px; font-weight:bold;">&yen;{a3.total}</span><br />
                    <span class="vidhid show">
                        <a target="_blank" href="{a3.see}={a3.ordid3}">查看</a>
                    </span>
                    <span class="vidhid {a3.canc}">
                        |
                        <a href="###" onclick="{a3.cancfun}({a3.ordid6})">{a3.canctxt}</a>
                    </span>
                    <span class="vidhid {a3.upd}">
						|
                        <a href="###" onclick="{a3.updfun}({a3.ordid8},'{a3.title2}','{a3.ttitle2}',{a3.num2},{a3.remsg2})">{a3.updtxt}</a>
                    </span>
                </td>-->
            </tr>
            
		<!--list-a3-->
    	
    <!--list-ol-->
	<!--&if=noord&status=0-->
		<tr><td style="text-align:left; padding:5px 10px;" colspan='10'>&nbsp;&nbsp;&nbsp;&nbsp;不存在订单记录</td></tr>
	<!--if-noord-0-->
		<tfoot class="counts">
				<td colspan="10" class="surtd">
				<span style="float:right; margin-right:25px; line-height:30px;"><h4>
					统计结果：
					<span>订单数：<em class="green">{$total}</em>单</span>
					<span>数 量：<em class="pink">{$tnum}</em></span>
					<span>总金额：<em class="red">{$allm}</em>元</span>
				</h4></span>
				</td>
		</tfoot>
	</table>
	{$fy}
</div>
<iframe name="ifr" style="display:none"></iframe>
<script type="text/javascript">
var elementsLists=[];
$("tr").each(function(i,e){
	if(i>0 && e.className!="counts")elementsLists.push(e);
});
var addDivFunc=function(div){
		var table=document.getElementById("orders");
		table.parentNode.appendChild(div);
	}
var Jspage=new JsPage({$pageSize},{$total},elementsLists,addDivFunc);
//Jspage.showpage(0);
</script>